package com.example.parkingproject.service;
import com.example.parkingproject.jopo.dto.UserLoginDto;
import com.example.parkingproject.jopo.dto.UserRegDto;
import com.example.parkingproject.jopo.dto.UserUpdateDto;
import com.example.parkingproject.jopo.entity.Password;
import com.example.parkingproject.jopo.vo.StopHistoryVo;
import com.example.parkingproject.jopo.vo.UserLoginVo;
import com.example.parkingproject.jopo.vo.getUserVo;
import com.example.parkingproject.jopo.vo.spaceOccupancy;

import org.springframework.stereotype.Repository;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * userservice 接口
 */
@Repository
public interface UserService {
    UserLoginVo login(UserLoginDto userLoginDto);

    void reg(UserRegDto userRegDto);

    getUserVo getUserByCardId(String cardId);

    void update(UserUpdateDto userUpdateDto);

    List<spaceOccupancy> getSpaceOccupancy(String carId);

    List<StopHistoryVo> getHistory(String cardId);

    List<StopHistoryVo> search(StopHistoryVo stopHistoryVo);

    Integer getUserNumber();


    void openVip(String cardId);

    void updatePassword(Password password);

    void updatePasswordByPhone(Password password, String code);
}
